package com.flnet.api.mapper;

import com.flnet.api.domain.Member;
import java.util.List;	

/**
 * 会员 数据层
 * 
 * @author flnet
 * @date 2019-03-27
 */
public interface MemberMapper
{
	/**
     * 查询会员信息
     * 
     * @param memberId 会员ID
     * @return 会员信息
     */
	public Member selectWMemberById(Long memberId);
	
	/**
     * 查询会员列表
     * 
     * @param member 会员信息
     * @return 会员集合
     */
	public List<Member> selectWMemberList(Member member);
	
	/**
     * 新增会员
     * 
     * @param member 会员信息
     * @return 结果
     */
	public int insertWMember(Member member);
	
	/**
     * 修改会员
     * 
     * @param member 会员信息
     * @return 结果
     */
	public int updateWMember(Member member);
	
	/**
     * 删除会员
     * 
     * @param memberId 会员ID
     * @return 结果
     */
	public int deleteWMemberById(Long memberId);
	
	/**
     * 批量删除会员
     * 
     * @param memberIds 需要删除的数据ID
     * @return 结果
     */
	public int deleteWMemberByIds(String[] memberIds);

	public Member queryByMobile(String phone);

	public Member queryByOpenId(String openId);
}